Skip to content

Conversation

@thomson-t
Copy link
Contributor

Summary

Load the legacy native view if Fabric components are not enabled.

Testing Plan

Tested with RN version 0.76.9 and 0.79.4

Master Issue

Closes https://go.mparticle.com/work/REPLACEME

…iew iOS

Load the legacy native view if Fabric components are not enabled.
Copilot AI review requested due to automatic review settings July 23, 2025 12:23
@thomson-t thomson-t requested a review from a team as a code owner July 23, 2025 12:23
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the architecture detection logic for iOS RoktLayoutView component to use Fabric-specific checks instead of general new architecture checks. The change ensures that the legacy native view is loaded when Fabric components are not enabled, providing more granular control over component selection.

Key changes:

  • Adds isFabricEnabled utility function to detect Fabric availability
  • Updates RoktLayoutView iOS component to use Fabric-specific architecture detection

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
js/utils/architecture.ts Adds isFabricEnabled function that checks for nativeFabricUIManager global
js/rokt/rokt-layout-view.ios.tsx Replaces isNewArchitecture import and usage with isFabricEnabled for component selection

@thomson-t thomson-t merged commit 3ba2472 into development Jul 24, 2025
16 checks passed
@thomson-t thomson-t deleted the fix/fabric-component-check branch July 24, 2025 01:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants